@extends('layouts.admin')

@section('content')
    <div class="console-title">
        <h2>系统设置->支付宝设置</h2>
    </div>
    <div class="content-div">
        <form method="post" id="Form" action="{{admin_url('settings/save')}}">
            {{csrf_field()}}
            <table class="formtable" border="0" cellpadding="0" cellspacing="0" width="100%">
                <tbody>
                <tr>
                    <td width="110" class="cell-label">应用ID:</td>
                    <td width="360" class="cell-input">
                        <div class="input-group">
                            <input title="" name="settings[alipay_appid]" class="form-control w300" value="{{$settings['alipay_appid'] or ''}}" type="text">
                        </div>
                    </td>
                    <td class="cell-tips">支付宝注册的应用ID</td>
                </tr>
                <tr>
                    <td class="cell-label">合作身份者ID:</td>
                    <td class="cell-input">
                        <div class="input-group">
                            <input class="form-control" type="text" title="" name="settings[alipay_partner]" value="{{$settings['alipay_partner'] or ''}}">
                        </div>
                    </td>
                    <td class="cell-tips">合作身份者ID，签约账号，以2088开头由16位纯数字组成的字符串</td>
                </tr>
                <tr>
                    <td class="cell-label">收款支付宝账号:</td>
                    <td class="cell-input">
                        <div class="input-group">
                            <input class="form-control" type="text" title="" name="settings[alipay_seller_id]" value="{{$settings['alipay_seller_id'] or ''}}">
                        </div>
                    </td>
                    <td class="cell-tips">收款支付宝账号，以2088开头由16位纯数字组成的字符串，一般情况下收款账号就是签约账号</td>
                </tr>
                <tr>
                    <td class="cell-label">商户应用私钥:</td>
                    <td class="cell-input">
                        <div class="input-group">
                            <textarea title="" class="form-control" name="settings[alipay_private_key]" style="height: 160px;">{{$settings['alipay_private_key'] or ''}}</textarea>
                        </div>
                    </td>
                    <td class="cell-tips">商户的私钥,此处填写原始私钥去头去尾</td>
                </tr>
                <tr>
                    <td class="cell-label">支付宝公钥:</td>
                    <td class="cell-input">
                        <div class="input-group">
                            <textarea title="" class="form-control" name="settings[alipay_public_key]" style="height: 160px;">{{$settings['alipay_public_key'] or ''}}</textarea>
                        </div>
                    </td>
                    <td class="cell-tips">支付宝的公钥，查看地址：https://b.alipay.com/order/pidAndKey.htm</td>
                </tr>
                </tbody>
                <tfoot>
                <tr>
                    <td></td>
                    <td colspan="2">
                        <button type="submit" class="btn btn-primary w100">更新配置</button>
                    </td>
                </tr>
                </tfoot>
            </table>
        </form>
    </div>
@stop
